package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.SysAudit;
import com.ruoyi.system.mapper.SysAuditMapper;
import com.ruoyi.system.service.ISysAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 审计基础Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
@Service
public class SysAuditServiceImpl implements ISysAuditService
{
    @Autowired
    private SysAuditMapper sysAuditMapper;

    /**
     * 查询审计基础
     * 
     * @param id 审计基础主键
     * @return 审计基础
     */
    @Override
    public SysAudit selectSysAuditById(Long id)
    {
        return sysAuditMapper.selectSysAuditById(id);
    }

    /**
     * 查询审计基础列表
     * 
     * @param sysAudit 审计基础
     * @return 审计基础
     */
    @Override
    public List<SysAudit> selectSysAuditList(SysAudit sysAudit)
    {
        return sysAuditMapper.selectSysAuditList(sysAudit);
    }

    /**
     * 新增审计基础
     * 
     * @param sysAudit 审计基础
     * @return 结果
     */
    @Override
    public int insertSysAudit(SysAudit sysAudit)
    {
        return sysAuditMapper.insertSysAudit(sysAudit);
    }

    /**
     * 修改审计基础
     * 
     * @param sysAudit 审计基础
     * @return 结果
     */
    @Override
    public int updateSysAudit(SysAudit sysAudit)
    {
        return sysAuditMapper.updateSysAudit(sysAudit);
    }

    /**
     * 批量删除审计基础
     * 
     * @param ids 需要删除的审计基础主键
     * @return 结果
     */
    @Override
    public int deleteSysAuditByIds(Long[] ids)
    {
        return sysAuditMapper.deleteSysAuditByIds(ids);
    }

    /**
     * 删除审计基础信息
     * 
     * @param id 审计基础主键
     * @return 结果
     */
    @Override
    public int deleteSysAuditById(Long id)
    {
        return sysAuditMapper.deleteSysAuditById(id);
    }
}
